<%search_type||=RETYPE%>
<div class="search">
	<div id="search_tab">
		<ul>
		<li class="<%=search_type =='search_requirement'?'select':''%>"><a href="#" name="search_requirement">需求</a></li>
		<li class="<%=search_type =='search_design'?'select':''%>"><a href="#" name="search_design">创意</a></li>
		<li class="<%=search_type =='search_info'?'select':''%>"><a href="#" name="search_info">资讯</a></li>
		</ul>                  
	</div>             
	<div id="search_form">
		<% form_tag({:action => :index, :controller => "/site/search"},{:class => "form_search", :method => "get"}) do -%>
			<%= text_field_tag "q", params[:q] %>
			<%= submit_tag "搜索", :class => "btn"%>
			<%=hidden_field_tag 'search_type',search_type%>
		<% end %>
	</div>
</div>